Image printing apparatus, image printing system and control method

ABSTRACT

An image printing apparatus and its control method for printing an image based on image data from an image data source. In a case where a correction condition is set for the image data, if the image data is a new format file image data including predetermined information, correction processing is performed in accordance with the set correction condition. If the image data is not a new format file image data, the correction processing in accordance with the correction condition is not performed.

This application is a divisional application of co-pending applicationSer. No. 10/368,588, filed Feb. 20, 2003, which is incorporated hereinby reference.

FIELD OF THE INVENTION

The present invention relates to image printing apparatus, imageprinting system and control method for inputting image data from animage supply device such as a digital camera or a memory and printing animage on a print medium.

BACKGROUND OF THE INVENTION

As an image printing apparatus which inputs image data from an imagesupply device such as a digital camera or a memory and prints an imageon a print medium, an apparatus having an image correction function isknown. In this image printing apparatus, when a desired image isprinted, setting is made such that image correction is performed on theimage data for the entire one print designation operation (one printjob) or such that image correction is not performed at all.

Accordingly, when plural images are to be printed by using this imageprinting apparatus, correction is performed on all the image data, orcorrection is not performed. However, input image data may includenew-format image data which is subjected to optimized correction, ifsetting of image correction is on, in accordance with its information,and conventional format image data without such setting function. Forexample, in a case where plural (e.g. 3) images to be printed, it isdesirable that regarding an image A represented by new format imagedata, the image correction setting is turned ON; regarding an image Brepresented by conventional format image data, the image correctionsetting is turned OFF; and regarding an image C represented by the newformat image data, the image correction setting is turned ON. In suchcase, the following operation is necessary. The images A, B and C arerespectively printed by different processings (3 print jobs). That is,the image correction setting is turned ON and the image A is printed,then the image correction setting is turned OFF and the image B isprinted, and the image correction setting is turned ON and the image Cis printed. Otherwise, the images A and C are printed with the samesetting, and the image B is printed with another setting (by 2 printjobs). In any case, printing for these plural types of images istroublesome, and if the types and the number of print sheets increase,the operation for printing becomes more complicated.

SUMMARY OF THE INVENTION

The present invention has been made in consideration of the aboveconventional art, and has its object to provide image printingapparatus, image printing system and control method for determining, byimage data, whether or not image data includes predetermined informationand if set image correction condition is a predetermined condition,determining whether or not correction processing is to be performed onthe image data, and performing printing.

Further, another object of the present invention is to provide imageprinting apparatus, image printing system and control method for, if theimage correction condition is automatic correction, determining whetheror not automatic correction is to be performed in correspondence withimage data file format, and performing printing.

Other features and advantages of the present invention will be apparentfrom the following description taken in conjunction with theaccompanying drawings, in which like reference characters designate thesame name or similar parts throughout the figures thereof.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are incorporated in and constitute apart of the specification, illustrate embodiments of the invention and,together with the description, serve to explain the principles of theinvention.

FIG. 1 depicts a schematic perspective view showing a photo-directprinter apparatus according to an embodiment of the present invention;

FIG. 2 depicts a schematic perspective view showing the construction ofprint head of the photo-direct printer apparatus according to theembodiment;

FIG. 3 depicts a schematic view showing an operation panel of thephoto-direct printer apparatus according to the embodiment;

FIG. 4 is a block diagram showing the arrangement of principal elementsconcerning control of the photo-direct printer apparatus according tothe embodiment;

FIG. 5 is a block diagram showing the construction of ASIC of thephoto-direct printer apparatus according to the embodiment;

FIG. 6 is a functional block diagram showing interfaces and thearrangement of functions for image processing control of thephoto-direct printer apparatus according to the embodiment;

FIG. 7 is a functional block diagram showing the arrangement of thefunctions for image processing control of the photo-direct printerapparatus according to the embodiment;

FIG. 8 is a block diagram showing a multi-task structure of tasks offunctional modules in a control program of the photo-direct printerapparatus according to the embodiment;

FIG. 9 is a block diagram showing image processing between thephoto-direct printer apparatus and a digital camera and a PC accordingto the embodiment;

FIG. 10A depicts a table showing a file format of old format image data;

FIG. 10B depicts a table showing a file format of new format image data;

FIG. 11 is a block diagram showing image correction control by an imageprocessor of the photo-direct printer apparatus according to theembodiment;

FIG. 12 depicts a table showing image correction settings according tothe embodiment;

FIG. 13 is a flowchart showing image data processing in the photo-directprinter apparatus according to the embodiment;

FIG. 14 is a flowchart showing image correction processing at step S2 inFIG. 13;

FIG. 15 is a flowchart showing “image processing 1” at step S3 in FIG.13;

FIG. 16 is a flowchart showing “image processing 2” at step S4 in FIG.13;

FIG. 17 is a flowchart showing “image processing 3” at step S5 in FIG.13; and

FIGS. 18 to 20 are schematic diagrams showing examples of printed imagesaccording to the embodiment.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

Hereinbelow, a preferred embodiment of the present invention will now bedescribed in detail in accordance with the accompanying drawings.

FIG. 1 depicts a schematic perspective view showing a photo-directprinter apparatus 1000 according to the embodiment of the presentinvention. The photo-direct printer has a general PC printer function ofreceiving data from a host computer (PC) and print-outputting the data,and a function of directly reading image data stored in a storage mediumsuch as a memory card and print-outputting the data, or receiving imagedata from a digital camera and print-outputting the data.

In FIG. 1, the main body which defines the casing of the photo-directprinter apparatus 1000 according to the present embodiment has a lowercase 1001, an upper case 1002, an access cover 1003 and a discharge tray1004 as casing members. The lower case 1001 forms almost the lower halfof the apparatus 1000, whereas the upper case 1002 forms almost theupper half of the main body. A combination of these cases forms a hollowstructure with a storage space where each mechanism to be describedlater is accommodated. The upper and front surfaces of the cases haveopenings. The discharge tray 1004 is rotatably held at one end by thelower case 1001, and the opening in the front surface of the lower case1001 is opened/closed by rotating the discharge tray 1004. To executeprint operation, the discharge tray 1004 is rotated toward the frontsurface side to open the opening. Print sheets can be discharged fromthe opening, and the discharged print sheets can be sequentiallystacked. The discharge tray 1004 houses two auxiliary trays 1004 a and1004 b. These trays are selectively pulled out to enlarge/reduce thepaper support area in three stages in accordance with necessity.

The access cover 1003 is rotatably held at one end by the upper case1002 so as to open/close the opening formed in the upper surface.Opening the access cover 1003 enables exchanging a print head cartridge(not shown), ink tank (not shown) or the like accommodated in the mainbody. Although not shown, a projection formed on the back surface of theaccess cover 1003 rotates a cover opening/closing lever when the accesscover 1003 is opened/closed. The lever rotation position is detected bya micro switch or the like, thereby detecting the open/closed state ofthe access cover.

A power switch 1005 is provided with the upper surface of the upper case1002. An operation panel 1010 having a liquid crystal display 1006,various key switches, and the like is arranged on the right side of theupper case 1002. The structure of the operation panel 1010 will bedescribed in detail with reference to FIG. 3. Reference numeral 1007denotes an automatic feeder which automatically feeds print sheets intothe apparatus main body; numeral 1008 denotes a paper interval selectionlever for adjusting the interval between the print head and the printsheet; and numeral 1009 denotes a card slot into which an adaptercapable of mounting a memory card is inserted. Image data stored in amemory card can be directly received and printed via the adapter. Thememory card (PC) includes, e.g., a compact flash memory, smart media andmemory stick. Numeral 1011 denotes a viewer (liquid crystal display)which is detachable from the apparatus main body and is used for displayof image of one frame, an index image and the like when images stored inthe PC card are searched for an image to be printed; and numeral 1012denotes a terminal for connection with a digital camera to be describedlater. A USB bus connector for connection with a personal computer (PC)is provided with the rear surface of the apparatus main body (not shownin FIG. 1).

FIG. 2 depicts a schematic perspective view showing the arrangement ofprint head of the photo-direct printer apparatus 1000 according to theembodiment.

As shown in FIG. 2, a print head cartridge 1200 in this embodiment hasink tanks 1300 which accommodate inks, and a print head 1301 whichdischarges inks supplied from the ink tanks 1300 from nozzles inaccordance with print information. As a so-called cartridge head isemployed as the print head 1301, it is detachably mounted in a carriage1102. In printing, the print head cartridge 1200 is scanned along acarriage shaft, and a color image is printed on a print sheet along withthe operation of the print head cartridge 1200. To achieve high-qualitycolor printing like a photograph, for example, the black, light cyan(LC), light magenta (LM), cyan, magenta, and yellow ink tanks areindependently set in the print head cartridge 1301 shown in FIG. 2. Eachink tank is detachable from the print head 1301.

In this embodiment, the apparatus using the above-described 6 color inkswill be described. However, the present invention is not limited to theuse of 6 color inks, but may be applied to an ink-jet printer whichperforms printing by using 4 color inks, black, cyan, magenta andyellow. In this case, each of 4 independent ink tanks may be detachablyset in the print head 1301.

FIG. 3 depicts a schematic view showing the operation panel 1010according to the present embodiment.

In FIG. 3, the liquid crystal display 1006 displays menu items forvarious settings of data on items printed on the right and left of thedisplay 1006. The displayed items are the first photograph number of aprint range, a designated frame number (start/designate), the lastphotograph number of the print range (end), the number of prints (numberof copies), the type of paper (print sheet) used for printing (papertype), setting of the number of photographs to be printed on one papersheet (layout), designation of print quality (quality), designationwhether to a photographing date is printed (date printing), designationwhether or not a photograph is corrected and printed (image correction),and display of the number of paper sheets necessary for printing (numberof paper sheets). These items are selected or designated with cursorkeys 2001. Numeral 2002 denotes a mode key which allows selection of thetype of printing (index printing, printing of all frames, printing ofone frame, and the like) every time this key is depressed, and one ofLEDs 2003 is turned on in correspondence with the depressed key.

In the present embodiment, in an item 2007 of the liquid crystal display2006 for designation of image correction, settings of 5 image correctionitems as shown in FIG. 12 can be selected by using the cursor keys 2001as “AT”

“OFF”

“ON”

“APP ON”

“VP ON”

“AT” every time the cursor key is depressed. Further, when the type ofprinting is changed by operation of the mode key 2002, the item of imagecorrection is automatically set to “AT”. Note that in FIG. 12, “AT”means automatic correction; “OFF”, turning off the image correctionfunction (disabling the operation)”; and “ON”, turning on the imagecorrection function (enabling the operation). “APP ON” is abbreviationfrom “Auto Photo Perfect” as setting for enabling the correctionfunction on a photographic image. “VP ON” means setting for imageenhancement processing.

Numeral 2004 denotes a maintenance key for performing printermaintenance such as cleaning of the print head 1301 as shown in FIG. 2;numeral 2005 denotes a print start key which is depressed to designatethe start of printing or establish maintenance setting; and numeral 2006denotes a print stop key which is depressed to stop printing ordesignate to stop a maintenance processing.

Next, the arrangement of the principal elements concerning control ofthe photo-direct printer apparatus according to the present embodimentwill be explained with reference to FIG. 4. In FIG. 4, elementscorresponding to those in the above-described figures have the samereference numerals, and explanations thereof will be omitted.

In FIG. 4, numeral 3000 denotes a controller (control board); numeral3001 denotes an ASIC (application specific LSI) whose arrangement willbe described in detail below with reference to the block diagram of FIG.5; numeral 3002 denotes a DSP (Digital Signal Processor) whichincorporates a CPU and performs various control processings to bedescribed later, and image processings such as conversion from luminance(RGB) signals to density (CMYK) signals, scaling, gamma conversion, anderror diffusion; numeral 3003 denotes a memory having a program memory3003 a for storing the control program of the CPU of the DSP 3002, a RAMarea for storing variables and the like upon execution of program, and amemory area functioning as a work memory for storing image data andvarious data; numeral 3004 denotes a printer engine which is an ink-jetprint type printer engine for printing a color image by using aplurality of color inks; numeral 3005 denotes a connector serving as aport for connection with a digital camera 3012; numeral 3006 denotes aconnector for connection with the viewer 1011; and numeral 3008 denotesa USB bus hub (USB hub) which transmits data from a PC 3010 to theprinter engine 3004 via a USB bus 3021 when the printer apparatus 1000performs printing based on image data from the PC 3010. The connected PC3010 can directly exchange data and signals with the printer engine 3004and execute printing (functions as a general PC printer). Numeral 3009denotes a power connector which receives a DC voltage converted from acommercial AC voltage from a power supply 3019. The PC 3010 is a generalpersonal computer and is connected to the printer apparatus 1000 via theUSB connector 1013. Numeral 3011 denotes a memory card (PC card)described above; and numeral 3012 denotes the digital camera. Note thatsignal exchange between the controller 3000 and the printer engine 3004is performed via the above-described USB bus 3021 or an IEEE 1284 bus3022.

FIG. 5 is a block diagram showing the construction of the ASIC 3001.Also in FIG. 5, elements corresponding to those in the above-describedfigures have the same reference numerals, and explanations thereof willbe omitted.

Reference numeral 4001 denotes a PC card interface which reads imagedata stored in the mounted PC card 3011 or writes data in the PC card3011; and numeral 4002 denotes an IEEE 1284 interface which exchangesdata with the printer engine 3004. The IEEE 1284 interface is a bus usedfor print-outputting image data stored in the digital camera 3012 or PCcard 3011. Numeral 4003 denotes a USB interface which exchanges datawith the PC 3010; numeral 4004 denotes a USB host interface whichexchanges data with the digital camera 3012; numeral 4005 denotes anoperation panel interface which receives various operation signals fromthe operation panel 1010 or outputs display data to the display 1006;numeral 4006 denotes a viewer interface which controls display of imagedata on the viewer 1011; numeral 4007 denotes an interface whichcontrols an interface with various switches, an LED 4009, and the like;numeral 4008 denotes a CPU interface which controls data exchangebetween these interfaces and the DSP 3002; and numeral 4010 denotes aninternal bus (ASIC bus) which interconnects these elements.

FIG. 6 is a functional block diagram showing the interfaces and thearrangement of functions for image processing control of thephoto-direct printer apparatus 1000 according to the present embodiment.Also in FIG. 6, elements corresponding to those in the above-describedfigures have the same reference numerals, and explanations thereof willbe omitted.

Numeral 6000 corresponds to a host (image data source) seen from thephoto-direct printer apparatus 1000. The host 6000 includes the PC 3010serving as the host computer, the digital camera 3012, and the PC card3011 described above, and a game machine, television device (neither isshown), and the like. The host 6000 is connected via an interface suchas a USB bus, IEEE 1284, or IEEE 1394. Further, as the interface,Bluetooth or the like may be used.

The function of the control board 3000 described above further includesa data input/storage processor 6001 and a printer interface 6004 foroutputting print data to the printer engine 3004, which are implementedby the ASIC 3001, and a multi-renderer section 6002 and image processingand process section 6003 executed by the DSP 3002.

FIG. 7 is a functional block diagram showing the arrangement of thefunctions for image processing control in the photo-direct printerapparatus 1000 according to the present embodiment in more detail. Alsoin FIG. 7, elements corresponding to those in the above-described figurehave the same reference numerals, and explanations thereof will beomitted.

In FIG. 7, image data or JPEG-compressed image data inputted from the PCcard 3011, camera 3012, or PC 3010 via an interface 7005 such as a USBbus interface is temporarily stored in an image buffer 7000. If thestored data is compressed data, it is decompressed by a JPEGdecompressor 7006. The decompressed data is converted from Y, Cb and Crsignals into R, G and B signals, and the converted signals are thenstored in an RGB buffer 7001. A 3D3 (7007) converts the color space ofRGB data by referring to a look-up table 7009. A 3D6 (7008) converts R,G and B signals into signals for 6 colors of C, M, Y, K, LC (light cyan)and LM (light magenta) by referring to the look-up table 7009. Numeral7010 denotes an X-Y scaling unit which changes image sizes in the Xand/or Y direction; numeral 7011 denotes a 1D output unit which executescolor processing such as γ conversion by referring to a one-dimensionaltable 7014; and numeral 7012 denotes an error diffusion (ED) unit whichperforms error diffusion processing on multilevel image data to generatebinarized image data (or multilevel) data for each color. The binarized(or multilevel data) generated in this manner is stored in an ED buffer7003. Numeral 7004 denotes a work buffer for storing print datacorresponding to each of a plurality of print heads discharging inks ofrespective colors. The generated print data corresponding to each printhead is transmitted to the printer engine 3004 via a printer interface7013, and printing is performs. Numeral 7015 denotes an image correctionunit which generates the 3D3 look-up table 7009 utilized by the 3D3(7007). Image correction is performed by the image correction unit 7015by referring to the contents of the table 7009 to control color space,contrast and the like, in accordance with, e.g., input imageinformation.

Note that in FIG. 7, the X-Y scaling unit 7010 performs size changeprocessing for an image in the X and/or Y direction after processing bythe 3D6 (7008). However, the present invention is not limited to thisprocessing, and as will be described later with reference to FIG. 11,the size change processing may be performed before color conversion toRGB data.

As described above, in the photo-direct printer apparatus 1000, the DSP3002 executes control of each unit of the apparatus 1000 in addition toimage processing. The DSP 3002 also has a parallel processing functionand can parallelly execute the 3D3 processing, 3D6 processing, X-Yscaling, 1D output processing, error diffusion processing, and the like.The DSP 3002 is, e.g., TMS320 DSP by Texas Instruments (TI), whichexecutes control to be described later in accordance with a controlprogram stored in the program memory 3003 a shown in FIG. 4.

Note that in the present embodiment, the DSP 3002 capable of parallelprocessing is employed for the purpose of obtaining high totalthroughput by increasing the speed of image processing, however, a CPUof another type such as RISC or CISC can be employed.

This control program is arranged in a multitask form in which a task iscreated for each functional module. FIG. 8 shows a main task structure.

In FIG. 8, reference numeral 8000 denotes a system control task whicharbitrates an entire system by, e.g., issuance of each event betweentasks, control of sequence at the end of an event, and exclusiveprocessing; numeral 8001 denotes a key event task which analyzes adepressed key on the basis of key operation at the operation panel 1010;numeral 8002 denotes a display task for the LCD 1006, which is activatedwhen a UI control request, message display request, or the like is madeon the display 1006, and which executes display control to the display1006; numeral 8003 denotes tasks activated by reading/writing datafrom/in the PC card 3011 or inputting/outputting to/from data via theIEEE 1394 or Bluetooth; and numeral 8004 denotes a USB printer taskactivated by data transfer from the PC 3010 connected via the USB bus.The USB printer task 8004 is activated by a printer interrupt sent via aUSB bus, and executes a function as a PC printer. Numeral 8005 denotes aUSB storage task which is activated by the system control task 8000 andwhich initializes firmware. The USB storage task 8005 starts/ends a USBcontrol task and USB bulk task as lower tasks in accordance with amessage from the system control task 8000. Numeral 8006 denotes a pseudoUSB host task which is activated by the USB task and which executes dataread from the digital camera 3012 connected via a USB bus and varioustypes of communication controls. Numeral 8007 denotes a file task whichperforms input/output control such as file open, file close, file read,and file write. Numeral 8008 denotes a Centronics task activated from aCentronics interface connected to the printer engine 3004. TheCentronics task 8008 executes DMA transmission of print data, statusreply, and the like. Numeral 8009 denotes an image processing task whichreceives RGB data, generates YMCK data by 3D processing, tetrahedroninterpolation, color conversion, scaling, and error diffusion describedabove, and finally generates raster image data to be outputted to theprinter engine 3004. Numeral 8010 denotes a page create task whichexpands JPEG data to convert it into image data, generates image datafrom data in a BMP format, or generates image data from an HTMLdocument. In addition, the page create task 8010 performs imageprocessing such as photograph data correction and grayscale correction,and generates RGB data. Numeral 8011 denotes a viewer task whichexecutes display control to the viewer 1011 when the viewer 1011 hasbeen connected.

The outline of operation of the above-described construction will bedescribed with reference to FIG. 9. In the photo-direct printerapparatus 1000 according to the present embodiment, image printing isperformed in the following 3 modes.

<General PC Printer Mode>

This is a print mode of a general PC printer of printing an image basedon print data sent from the PC 3010.

In this mode, when the data from the PC 3010 in FIG. 4 is inputted viathe connector 1013, the data is directly sent to the printer engine 3004via the USB bus hub 3008 and the USB bus 3021, and printing is performedbased on the data from the PC 3010. That is, the PC 3010 inputs imagedata 9100 of digital photograph or the like, which an operator wants toprint, from a memory card, a hard disk or a network such as theInternet, then performs image processing to be described in FIG. 11 bythe image processor 9010, and outputs the processed data to the printerapparatus 1000, thereby a desired image can be printed.

<PC-Card Direct Print Mode>

When the PC card 3011 is attached/detached to/from the card slot 1009,an interrupt occurs, thereby the DSP 3002 can detect whether the PC card3011 has been attached or detached (removed). When the PC card 3011 isattached to the card slot, compressed (e.g., JPEG compressed) image datastored in the PC card 3011 is read and stored into the memory 3003.Then, the compressed image data is decompressed and again stored intothe memory 3003. Next, if an instruction to print-output the storedimage data is issued by using the operation panel 1010, conversion fromRGB signals to YMCK signals, gamma conversion, error diffusion and thelike, are performed to convert the data into data printable by theprinter engine 3004, and the data is outputted via the IEEE 1284interface 4002 to the printer engine 3004, then printing is performedbased on the data. That is, the image data 9100 of digital photograph orthe like which the operator wants to print, inputted from the PC card3011, is read then the image processing to be described in FIG. 11 isperformed by the image processor 9010, and the data is outputted to theprinter engine 3004, thereby a desired image can be printed.

<Camera 3012 Direct Print Mode>

As the photo-direct printer apparatus 1000 according to the presentembodiment and the digital camera 3012 are connected with each other viaa cable, image data from the digital camera 3012 can be directlyprint-outputted by the printer apparatus 1000.

In this case, only a camera mark is displayed on the display 1006 of theoperation panel 1010, and display and operation at the operation panel1010 are disabled, and display to the viewer 1011 is also disabled.Accordingly, hereinbelow, only key operation at the digital camera 3012and image display on a display unit (not shown) of the digital camera3012 are enabled, and the user can issue a print instruction by usingthe digital camera 3012. That is, when a print instruction is issuedfrom the digital camera 3012, the photo-direct printer apparatus 1000reads the image data 9100 to be print-outputted from the digital camera3012, performs the image processing to be described in FIG. 11 by animage processor 9000 of the photo-direct printer apparatus 1000, andoutputs the data to the printer engine 3004, thereby prints a desiredimage. Note that the image processor 9000 is realized by theabove-described DSP 3002 and the program stored in the program memory3003 a.

FIGS. 10A and 10B depict tables showing the data format (file) of theimage data 9100 as shown in FIG. 9. In the present embodiment, at least2 types of file formats, old format data 9200 as shown in FIG. 10A andnew format data 9300 as shown in FIG. 10B can be discriminated.

In the figures, headers 9210 and 9310 include header information such asversion information such that at least new/old data structure can bediscriminated even if file extension such as JPG or TIF is the same.Basic tags 9220 and 9320 include image sensing information on imagesize, aperture upon image sensing, exposure and the like. An extendedtag 9340 includes information added in the new format data 9300 whichincludes detailed image-sensing information, extended from theconventional basic tag information 9220, and the like. The data 9230 and9350 include thumbnail image data and main image data.

FIG. 11 is a block diagram showing the functional construction of theimage processor 9000 of the photo-direct printer apparatus 1000according to the embodiment. Further, FIG. 12 shows an example ofselection of settings “X”, “Y” and “D” corresponding to settings inimage correction items 2007 of the above-described liquid crystaldisplay 1006.

If the image data 9100 corresponds to the new format file 9300 as shownin FIG. 10B, settings indicated in a new format column 12000 in FIG. 12are selected; on the other hand, if the image data 9100 corresponds tothe old format file 9200 as shown in FIG. 10A, settings indicated in anold format column 12001 are selected. Note that the alphabets “X”, “Y”and “D” in FIG. 11 correspond to those in FIG. 12. “X” indicates whetherimage correction is “ON (necessary)” or “OFF (unnecessary)”; “D”indicates whether correction information is “present”, “absent” or“correction is unnecessary”; and “Y” indicates whether color toneenhancement is “ON” or “OFF”.

When a print request is issued from the operator, a determination unit9400 skips the processing by the image correction unit 7015 if the Xsetting (image correction) is “OFF”, then image data is outputted to anoutput image generation unit 9600, and an output image is generated. Onthe other hand, if the X setting is “ON”, the file extension of imagedata to be print-outputted, the headers 9210 and 9310 in FIGS. 10A and10B and the like are read by input of “C”, and it is examined whetherthe image data is a new format file or an old format file. It isdetermined as a result that the image data is a new format file, thedata is outputted, with selection of the D setting in the new formatcolumn 12000, to the image correction unit 7015. If it is determinedthat the image data is an old format file, the data is outputted, withselection of the D setting in the old format column 12001, to the imagecorrection unit 7015. Then the image correction unit 7015 performs imagecorrection in correspondence with the D setting. If the D setting is“present”, the basic tag 9320 and the extended tag 9340 in FIG. 10B areread, then the image data is corrected based on the image sensingconditions and the like of the image data, such that the data hasoptimum contrast and color space, and print image data is generated bythe output image generation unit 9600. Further, if the D setting is“absent”, it is determined that the image data has been obtained onstandard image sensing conditions, then the image data is corrected suchthat the data has standard contrast and color space and outputted to theoutput image generation unit 9600 for generation of print image data.The output image generation unit 9600 inputs image data processed by thedetermination unit 9400 and/or the image correction unit 7015 andprinting conditions, and further, adds “ON”/“OFF” of color toneenhancement (process to obtain a vivid color tone) in correspondencewith the Y setting to the required print conditions, and generates finalprint image data.

For example, in a case where “AT (automatic correction)” is set in theimage correction items 2007 in FIG. 3, if image data of the new formatfile is inputted in this state, the X setting (image correction) is“ON”, the Y setting (color tone enhancement) is “OFF”, and the D settingis “(correction information) present”. The determination unit 9400determines that image correction is necessary since the X setting is“ON”, and outputs the image data to the image correction unit 7015. Theoutput image generation unit 9600 generates image data for printingwithout color tone enhancement processing in accordance with the Ysetting (OFF), and outputs the data to the printer engine 3004.

Further, if image data of the old format file is inputted in this state,the X setting (image correction) is “OFF”, the Y setting (color toneenhancement) is “OFF”, and the D setting is “(correction information)absent”. The determination unit 9400 determines that image correction isnot necessary since the X setting is “OFF”, and outputs the image datadirectly to the output image generation unit 9600. The output imagegeneration unit 9600 generates print image data without color toneenhancement processing in accordance with the Y setting (OFF), andoutputs the data to the printer engine 3004.

Similarly, in other cases, the image correction processing and the colortone enhancement processing are selectively performed in accordance withwhether the image data is new format file data or old format file data,and print-outputted by the printer engine 3004 based on the result ofprocessings.

Next, the outline of print processing by the DSP 3002 of thephoto-direct printer apparatus 1000 according to the present embodimentwill be described with reference to the flowcharts of FIGS. 13 to 17.Note that as the print processing by the DSP 3002 is executed inmulti-task form, the entire flow of processing will be described.

FIG. 13 is a flowchart showing the outline of the processing by the DSP3002 according to the present embodiment.

This processing is started by inputting image data from the PC card 3011or the digital camera 3012. First, at step S1, page create processing isperformed. That is, the format of page data is set. Next, at step S2,image correction processing is performed on the input image data. Theprocess proceeds to step S3, at which “image processing 1” is performed,then at step S4, “image processing 2” is performed, and at step S5,“image processing 3” is performed. Note that the image correctionprocessing and the “image processings 1 to 3”, to be described laterwith reference to FIGS. 14 to 17, are actually performed in parallel. Inthe present embodiment, to perform image processing at a high speedutilizing a small memory area, the processing unit of image data is 16rasters.

When the image processing has been completed and print data has beengenerated, the process proceeds to step S6, at which the generated printdata is DMA-transmitted to the printer engine 3004. Then at step S7, toread image data to be processed next, the memory address is updated tomove the address of the image buffer 7000 for 16 rasters. The processproceeds to step S8, at which it is determined whether or not imageprocessing for 1 page has been completed, and if the image processinghas not been completed, the process returns to step S3 to repeat theabove-described processing. If it is determined at step S8 that theimage processing for 1 page has been completed, the process ends.

FIG. 14 is a flowchart showing the image correction processing at stepS2 in FIG. 13. Note that this processing is executed by thedetermination unit 9400 and the image correction unit 7015 in FIG. 11.

First, at step S41, the X setting (image correction) described in FIG.12 is examined. If the X setting is “OFF”, the process proceeds to stepS46, at which the 3D3 look-up table 7009 to which the 3D3 (7007) in FIG.7 refers is set as a standard table, thereby the process ends withoutexecution of image correction.

On the other hand, at step S41, if the X setting is “ON”, the processproceeds to step S42, at which it is determined whether the data to beprint-outputted is the new format file or the old format file, based thefile extension of image data and the information in the headers 9210 and9310 in FIGS. 10A and 10B. If it is determined that the data is the newformat file, the process proceeds to step S43, at which the basic tag9320 and the extension tag 9340 in FIG. 10B are read, then parametersare prepared to correct the image so as to obtain optimum contrast andcolor space based on image sensing conditions of the image data and thelike, and the process proceeds to step S45.

On the other hand, if it is determined at step S42 that the data is theold format file, it is determined that the image data has been obtainedon standard image sensing conditions, and the process proceeds to stepS44. At step S44, parameters are prepared to correct the image so as toobtain standard contrast and color space, and the process proceeds tostep S45. At step S45, the 3D3 look-up table 7009 to which the 3D3(7007) refers is generated in correspondence with the parametersprepared at step S43 or S44, and the process ends. The generated 3D3look-up table 7009 is referred to at step S23 of the flowchart in FIG.16, thereby an output image subjected to desired image correction can beobtained.

FIG. 15 is a flowchart showing the “image processing 1” at step S3 inFIG. 13.

First, at step S11, decompression processing is performed on JPEG orTIFF format image data. The decompression of JEPG data is generallyperformed by the Huffman decoding, inverse quantization and inversediscrete cosine transform, and as a result, Y, Cb and Cr data aregenerated. Then the process proceeds to step S12, at which the Y, Cb andCr data are converted to R, G and B data. Note that the conversion isperformed by using conversion expression in the ITU-R BT. 601recommendation.

FIG. 16 is a flowchart showing the “image processing 2” at step S4 inFIG. 13.

First, at step S21, enlargement/reduction processing in a direction X(raster direction) is performed on the image data. Next, at step S22,enlargement/reduction processing in a direction Y (the direction ofnozzle array of the print head 1301) is performed on the image data. Theenlargement/reduction by linear interpolation is performed incorrespondence with the size of actual print area. The process proceedsto step S23, at which the R, G and B color components are converted toR*, G* and B* components. That is, the respective 8-bit R, G and B dataare converted to respective 8-bit R*, G* and B* data by using thethree-dimensional look-up table (LUT) 7009. This processing, calledcolor-space conversion processing (pre color processing), is performedfor correction of difference between the color space of the input imageand reproduction color space of the printer engine 3004.

Next, at step S24, the respective R, G and B color components areconverted to C, M, Y and K color components. That is, the respective8-bit R*, G* and B* data are converted to 6 color data, i.e., respective8-bit C, M, Y, K, LC and LM data by using the three-dimensional LUT7009. This processing, called color conversion processing (post colorprocessing), is performed for conversion of input RGB color data tooutput CMYK color data.

In many cases, input image data are 3 additive primary colors (RGB) oflight emitting device such as a display, however, in colorrepresentation by light reflection in use of printer or the like, 3subtractive primary colors are employed. Accordingly, the above colorconversion processing is performed. The three-dimensional LUT 7009 usedin the pre color processing and the three-dimensional LUT 7009 used inthe post color processing discretely hold data, and a value between helddata is obtained by interpolation processing. Since the interpolationprocessing is well known, detailed description of the interpolationprocessing will be omitted.

FIG. 17 is a flowchart showing the “image processing 3” at step S5 inFIG. 13.

First, at step S31, gamma conversion is performed on the 6 color imagedata, C, M, Y, L, LC and LM for density control. That is, γ correctionis performed on the respective 8-bit C, M, Y, K, LC and LM data,subjected to the post color processing, by using the one-dimensional LUT7012. Since the relation between the number of print dots per unit areaand an output characteristic (reflection density or the like) is oftennonlinear, a linear relation between the input level of the respective8-bit C, M, Y, K, LC and LM data and the output characteristic at thattime is ensured by the output γ correction. Note that in a case whereindividual difference of print head for printing by each color materialis detected by detection means for detecting color shift in printedimage, the color shift due to individual difference can be prevented bychanging the data in the one-dimensional LUT 7012 for the output γprocessing. For example, if the output characteristic of print head forprinting by C color material is greater than an expected value, desiredgrayscale representation is attained by changing the input/outputrelation of the one-dimensional LUT 7012. By this arrangement,correction of individual difference of print heads in each apparatus canbe realized.

Next, at step S32, binarization processing (error diffusion (ED)) isperformed. The printer engine 3004 of the present embodiment is binary,or ternary or quaternary (binary in this case) printer engine tosmoothly represent a photographic halftone image. The respective 8-bitC, M, Y, K, LC and LM image data are quantized by the error diffusioninto respective 1-bit or respective 2-bit C, M, Y, K, LC and LM data.Since the quantization using error diffusion is well known, detaileddescription of the quantization will be omitted.

FIGS. 18 to 20 are schematic diagrams showing the relation betweendesired images 1 to 4 and printed images outputted by the printer engine3004, in the above-described construction.

In FIG. 18, the “image 1” to “image 4” represents 4 images which theoperator want to print-output. FIG. 18 shows an example of results ofprinting these 4 images by 1 print request operation (1 job) in theimage correction mode set to “AT”. Note that in the followingdescription, the “image 1” and “image 3” are represented as the newformat files, and the “image 2” and “image 4”, as the old format files.

FIG. 19 shows an example of 4 images each obtained by printing 1 desiredimage on 1 print medium. Note that as the first “image 1” and the third“image 3” are represented as the new format files, they are subjected tooptimum image correction. The second “image 2” and the fourth “image 4”,represented as the old format files, are print-outputted without imagecorrection.

FIG. 20 shows an example of these 4 images (“image 1” to “image 4”)printed on 1 print medium. The “image 1” and “image 3” which are imagedata of new format file, are subjected to optimum image correction,while the “image 2” and “image 4”, image data of old format file, areprint-outputted on the same print sheet without image correction. Notethat in this example, a layout where 4 images (“image 1” to “image 4”)are printed on 1 print medium is employed, however, another layout suchas 2 images, 8 images or 16 images may be employed.

In the present embodiment, the number of types of image data is 2,however, even if 3 or 4 types are employed in the future, the processingat steps S42 to S45 in FIG. 14 may be changed such that the 3D3 look-uptable 7009 is generated in correspondence with the type of image datafile.

Further, in the mode of printing directly from digital camera, it may bearranged such that the above-described unit for image-correction settingoperation is provided on the digital camera side and the above X, Y andD setting statuses (FIGS. 11, 12) are notified to the photo-directprinter apparatus 1000. Further, to avoid complication of operation, the“AT” status may be automatically set. Further, as in the case of theabove description, the mode set in the image correction unit of theliquid crystal display 1006 may be used upon camera-direct printing.

By such arrangement, in a case where image data from the digital camerais directly print-outputted, image correction can be performed inaccordance with necessity by the above-described construction, and anoptimum image output can be obtained.

Further, in the above embodiment, image correction is performed by thephoto-direct printer apparatus 1000, however, the image correction maybe performed in a print system constructed by connecting e.g. the PC3010 with another image printing apparatus without the direct-printfunction as described in the present embodiment via an interface. Inthis case, as shown in FIG. 9, the PC 3010 selects the image correctionsettings as described in FIG. 12 by using GUI or the like, and thecontrol construction shown in FIG. 11 and the software processing asdescribed in the flowcharts of FIGS. 14 to 17 are introduced.

OTHER EMBODIMENT

As described above, the object of the present invention can be achievedby providing a storage medium holding software program code forperforming the aforesaid processes to a system or an apparatus, readingthe program code with a computer (e.g., CPU, MPU) of the system orapparatus from the storage medium, then executing the program. In thiscase, the program code read from the storage medium realizes thefunctions according to the embodiment, and the storage medium holdingthe program code constitutes the invention. Further, the storage medium,such as a floppy disk, a hard disk, an optical disk, a magneto-opticaldisk, a CD-ROM, a CD-R, a DVD, a magnetic tape, a non-volatile typememory card, and ROM can be used for providing the program code.

Furthermore, besides aforesaid functions according to the aboveembodiment are realized by executing the program code which is read by acomputer, the present invention includes a case where an OS (operatingsystem) or the like working on the computer performs a part or entireactual processing in accordance with designations of the program codeand realizes functions according to the above embodiment.

Furthermore, the present invention also includes a case where, after theprogram code is written in a function expansion card which is insertedinto the computer or in a memory provided in a function expansion unitwhich is connected to the computer, a CPU or the like contained in thefunction expansion card or unit performs a part or entire actualprocessing in accordance with designations of the program code andrealizes the functions of the above embodiment.

As described above, according to the present embodiment, items forsettings of image correction are provided, and “automatic (AT)”, “ON”,“OFF” can be arbitrarily selected. Even if the setting of imagecorrection is “automatic”, image correction is not performed on imagedata of old format file, on the other hand, regarding image data of newformat file, the setting of image correction is set to “ON” (to becorrected). By this arrangement, as optimum image correction can beperformed in correspondence with the format of image file and setting,even if new and old format image files mixedly exist, imagescorresponding to the respective image files can be printed by oneinstruction operation. This improves operability upon image dataprinting.

Further, if the setting of image correction is “ON”, image correction isperformed on any image data of new and old format files, and further, ifthe setting of image correction is “OFF”, image correction is notperformed on any image data of new and old format files.

The present invention is not limited to the above embodiments andvarious changes and modifications can be made within the spirit andscope of the present invention. Therefore, to appraise the public of thescope of the present invention, the following claims are made.

1. A printing apparatus for receiving a plurality of items of image datafrom an image source and printing, comprising: a setting unit configuredto set an instruction for correction into a print job; a determinationunit configured to determine whether or not each item of image data tobe printed in the print job has a file format corresponding to theinstruction set by said setting unit, in a case that the instruction setby said setting unit is depended on a file format of image data; animage processing unit configured to process the image data in accordancewith a determination result by said determination unit; and a printingunit configured to print all items of image data processed by said imageprocessing unit in one print job.
 2. An apparatus according to claim 1,wherein said image processing unit performs image processing on imagedata in which said determination unit determines to have the file formatcorresponding to the instruction, using image information of the imagedata in accordance with the instruction, and performs image processingon image data in which said determination unit determines to have nofile format corresponding to the instruction, not in accordance with theinstruction.
 3. An apparatus according to claim 1, wherein said imageprocessing unit includes a creation unit configured to create aparameter based on the image information, and said image processing unitprocesses the image data in which said determination unit determines tohave the file format corresponding to the instruction, based on theparameter created by said creation unit.
 4. An apparatus according toclaim 1, wherein said image processing unit processes the image data inwhich said determination unit determines to have no file formatcorresponding to the instruction, based on a default parameter.
 5. Anapparatus according to claim 1, wherein said setting unit is capable ofsetting layout information for printing a plurality of items of image ona printing medium, and said apparatus further comprises a control unitconfigured to print all items of image data processed by said imageprocessing unit in accordance with the layout information set by saidsetting unit, in one print job.
 6. A control method of a printingapparatus for receiving a plurality of items of image data from an imagesource and printing, comprising the steps of: setting an instruction forcorrection into a print job; determining whether or not each item ofimage data to be printed in the print job has a file formatcorresponding to the instruction set in said setting step, in a casethat the instruction set in said setting step is depended on a fileformat of image data; processing the image data in accordance with adetermination result in said determining step; and printing all items ofimage data processed in said image processing step in one print job. 7.A method according to claim 6, wherein in said processing step, imageprocessing on image data in which it is determined in said determiningstep to have the file format corresponding to the instruction, isperformed using image information of the image data in accordance withthe instruction, and image processing on image data in it is determinedin said determining step to have no file format corresponding to theinstruction, is performed not in accordance with the instruction.
 8. Amethod according to claim 7, said processing step further comprisingcreating a parameter based on the image information, wherein the imagedata in which it is determined in said determination step to have thefile format corresponding to the instruction, is processed based on theparameter created in said creating step.
 9. A method according to claim6, wherein in said processing step, the image data in which saiddetermination unit determines to have no file format corresponding tothe instruction, is processed based on a default parameter.
 10. A methodaccording to claim 6, wherein said setting step is capable of settinglayout information for printing a plurality of items of image on aprinting medium, the method further comprising a control step ofprinting all items of image data processed in said processing step inaccordance with the layout information set in said setting step, in oneprint job.
 11. A computer-readable storage medium for storing a programfor causing a computer to implement a control method according to claim6.
 12. A printing system having an image source and a printing apparatusfor printing an image based on a plurality of items of image data fromthe image source, said image source having: a setting unit configured toset an instruction for correction into a print job, and said printingapparatus having: a determination unit configured to determine whetheror not each item of image data to be printed in the print job has a fileformat corresponding to the instruction set by said setting unit, in acase that the instruction set by said setting unit is depended on a fileformat of image data; an image processing unit configured to process theimage data in accordance with a determination result by saiddetermination unit; and a printing unit configured to print all items ofimage data processed by said image processing unit in one print job. 13.A system according to claim 12, wherein said image processing unitperforms image processing on image data in which said determination unitdetermines to have the file format corresponding to the instruction,using image information of the image data in accordance with theinstruction, and performs image processing on image data in which saiddetermination unit determines to have no file format corresponding tothe instruction, not in accordance with the instruction.
 14. A systemaccording to claim 12, wherein said image processing unit comprising acreation unit configured to create a parameter based on the imageinformation, and wherein said image processing unit processes the imagedata in which said determination unit determines to have the file formatcorresponding to the instruction, based on the parameter created by saidcreation unit.
 15. A system according to claim 10, wherein said imageprocessing unit processes the image data in which said determinationunit determines to have no file format corresponding to the instruction,based on a default parameter.
 16. A system according to claim 10,wherein said setting unit is capable of setting layout information forprinting a plurality of items of image on a printing medium, said systemfurther comprising a control unit configured to print all items of imagedata processed by said image processing unit in accordance with thelayout information set by said setting unit, in one print job.
 17. Acontrol method of a printing system having an image source and aprinting apparatus for printing an image based on a plurality of itemsof image data from the image source, comprising the steps of: setting aninstruction for correction into a print job at the image source;determining at the printing apparatus whether or not each item of imagedata to be printed in the print job has a file format corresponding tothe instruction set in said setting step, in a case that the instructionset in said setting step is depended on a file format of image data;processing the image data in accordance with a determination result insaid determining step at the printing apparatus; and printing all itemsof image data processed in said processing step in one print job at theprinting apparatus.
 18. A method according to claim 17, wherein in saidprocessing step, image processing on image data in which it isdetermined in said determining step to have the file formatcorresponding to the instruction is processed, using image informationof the image data in accordance with the instruction, and imageprocessing on image data in which it is determined in said determiningstep to have no file format corresponding to the instruction isprocessed, not in accordance with the instruction.
 19. Acomputer-readable storage medium for storing a program for causing acomputer to implement a control method according to claim 17.